﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinFormsApp1
{
    public partial class FormEntityColumnEditor : Form
    {
        public EntityNaming? SelectedEntityColumn { get; internal set; }
        public FormEntityColumnEditor()
        {
            InitializeComponent();
        }

        private void FormEntityColumnEditor_Load(object sender, EventArgs e)
        {
            this.textBox1.Text = SelectedEntityColumn.Prefix;
            this.textBox2.Text = SelectedEntityColumn.ColumnName;
            this.textBox3.Text = SelectedEntityColumn.Postfix;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            SelectedEntityColumn.Prefix = this.textBox1.Text;
            SelectedEntityColumn.Postfix = this.textBox3.Text;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
